Github ActionsでJest
coverageが不要
普通にCI上でtest 実行すればPRに表示される
https://gyazo.com/d7f4d1686475f04e708372fc9e239aa2
code:jest-ci.yml
name: Jest CI
on:
pull_request:
jobs:
jest-ci:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: npm install
run: npm ci
- name: Run Jest
run: npm run test -- --ci
coverageが見たい時